import {createRouter, createWebHashHistory} from 'vue-router';

const routes = [
    {path: '/', component: () => import('@/pages/login/Login.vue')},
    {
        path: '/home', component: () => import('@/pages/home/home.vue'),
        children: [
            {path: '/comment', component: () => import('@/pages/comment/comment.vue')},
            {path: '/answer', component: () => import('@/pages/answer/answer.vue')},
            {path: '/carousel', component: () => import('@/pages/carousel/carousel.vue')},
            {path: '/goods', component: () => import('@/pages/goods/goods.vue')},
            {path: '/orders', component: () => import('@/pages/orders/orders.vue')},
            {path: '/recyclers', component: () => import('@/pages/recyclers/recyclers.vue')},
            {path: '/user', component: () => import('@/pages/user/user.vue')},
            {path: '/forum', component: () => import('@/pages/forum/forum.vue')},
        ]
    },


]


const router = createRouter({
    routes,
    history: createWebHashHistory()

})

export default router;

